#pragma once
#include "afxcmn.h"
#include "dep/RulerRichEditCtrl/RulerRichEditCtrl.h"


// CPage11_Notes-Dialogfeld

class CPage11_Notes : public CAPage
{
        DECLARE_DYNAMIC(CPage11_Notes)

    public:
        CPage11_Notes(CWnd* pParent = NULL);
        virtual ~CPage11_Notes();

        enum { IDD = IDD_DIALOG11_NOTES };

    protected:
        virtual void DoDataExchange(CDataExchange* pDX);

        DECLARE_MESSAGE_MAP()

    public:
        CRulerRichEditCtrl mwnd_notes;
        CTabCtrl mwnd_tab_control;
        CStatic mwnd_placement;

        void Store();
        void Restore();

        virtual BOOL OnInitDialog();
        afx_msg void OnCreateNewTab();
        afx_msg void OnTcnSelchangeTab1(NMHDR *pNMHDR, LRESULT *pResult);
        afx_msg void OnDeleteTab();
        afx_msg void OnTcnSelchangingTab1(NMHDR *pNMHDR, LRESULT *pResult);
        afx_msg void OnSize(UINT nType, int cx, int cy);

        void OnSave();

        bool ActivateNote(const CString& name);

    public:
        afx_msg void OnBnClickedButton4();
        afx_msg void OnDestroy();
        afx_msg void OnRenameTab();
};
